package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.LoanWholeProcessCheckedStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.LoanWholeProcessCheckedStatRequest;
import com.tuanzi.loan.vo.response.statistics.LoanWholeProcessCheckedStatResponse;
import org.springframework.data.domain.Page;
/**
* @Description:    全流程对账后台统计
* @Author:         xionghao
* @CreateDate:     2018-12-06
*/
public class LoanWholeProcessCheckedStatLazyDataModel
        extends BaseLazyDataModel<LoanWholeProcessCheckedStatRequest,LoanWholeProcessCheckedStatResponse>{

    private LoanWholeProcessCheckedStatService loanWholeProcessCheckedStatService = SpringContextHolder.getBean(LoanWholeProcessCheckedStatService.class);

    public LoanWholeProcessCheckedStatLazyDataModel(LoanWholeProcessCheckedStatRequest request) {
        super(request);
    }

    @Override
    protected Page<LoanWholeProcessCheckedStatResponse> doLoad(PageSearcher<LoanWholeProcessCheckedStatRequest> pageSearcher) {
        return loanWholeProcessCheckedStatService.list(pageSearcher);
    }
}
